<div class="layui-form-item" style="border: 1px solid #C0C4CC; height: 30px; width: 90%;margin: 4px 0 4px 4px" id="frame">
        <label class="layui-form-label">脚本规则</label>
    <a href="" class="layui-btn layui-btn-xs" style="margin-top: 6px" id="addDiv">脚本</a>
</div>
<script>
    layui.use(['layer','element'],function () {
        var element =layui.element;
        var layer = layui.layer;
        $('#addDiv').click(function () {
            // $('#ruleDiv').append(txt1)
            layer.open({
                title:'脚本',
                type: 2,
                shade: 0.3,
                area: ['85%', '90%'],
                content: setter.openPath+'script'
            });
        })
    })
</script>